package com.lgx.mall.basic.service;

import java.util.List;

import com.lgx.common.exception.DataException;
import com.lgx.common.web.Pagination;
import com.lgx.mall.basic.entity.News;

public interface INewsService {
	public News createNews(News news) throws DataException;      		//创建news
	public News updateNews(News news) throws DataException;				//修改news
	public void deleteNews(News news) throws DataException;				//根据对象删除news
	public void deleteNewsById(long id) throws DataException;		    //根据id删除news
	public void deleteNews(String[] ids) throws DataException;          //多项删除
	public News findNewsById(long id);							        //根据id查找news
	
	public List<News> findNewsList();
	public Pagination findNewsPagination(int type,String starTime,String endTime,String author, int pageSize,int pageNum);
}
